package com.ruoyi.offer.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.offer.mapper.HrOfferFollowupMapper;
import com.ruoyi.offer.domain.HrOfferFollowup;
import com.ruoyi.offer.service.IHrOfferFollowupService;

/**
 * offer跟进Service业务层处理
 * 
 * @author gy
 * @date 2025-05-21
 */
@Service
public class HrOfferFollowupServiceImpl implements IHrOfferFollowupService 
{
    @Autowired
    private HrOfferFollowupMapper hrOfferFollowupMapper;

    /**
     * 查询offer跟进
     * 
     * @param id offer跟进主键
     * @return offer跟进
     */
    @Override
    public HrOfferFollowup selectHrOfferFollowupById(Long id)
    {
        return hrOfferFollowupMapper.selectHrOfferFollowupById(id);
    }

    /**
     * 查询offer跟进列表
     * 
     * @param hrOfferFollowup offer跟进
     * @return offer跟进
     */
    @Override
    public List<HrOfferFollowup> selectHrOfferFollowupList(HrOfferFollowup hrOfferFollowup)
    {
        return hrOfferFollowupMapper.selectHrOfferFollowupList(hrOfferFollowup);
    }

    /**
     * 新增offer跟进
     * 
     * @param hrOfferFollowup offer跟进
     * @return 结果
     */
    @Override
    public int insertHrOfferFollowup(HrOfferFollowup hrOfferFollowup)
    {
        return hrOfferFollowupMapper.insertHrOfferFollowup(hrOfferFollowup);
    }

    /**
     * 修改offer跟进
     * 
     * @param hrOfferFollowup offer跟进
     * @return 结果
     */
    @Override
    public int updateHrOfferFollowup(HrOfferFollowup hrOfferFollowup)
    {
        return hrOfferFollowupMapper.updateHrOfferFollowup(hrOfferFollowup);
    }

    /**
     * 批量删除offer跟进
     * 
     * @param ids 需要删除的offer跟进主键
     * @return 结果
     */
    @Override
    public int deleteHrOfferFollowupByIds(Long[] ids)
    {
        return hrOfferFollowupMapper.deleteHrOfferFollowupByIds(ids);
    }

    /**
     * 删除offer跟进信息
     * 
     * @param id offer跟进主键
     * @return 结果
     */
    @Override
    public int deleteHrOfferFollowupById(Long id)
    {
        return hrOfferFollowupMapper.deleteHrOfferFollowupById(id);
    }
}
